//
//  M1HomeDetailsHeaderCollectionViewCell.m
//  NewMarryU
//
//  Created by Cedar on 2018/7/16.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1HomeDetailsHeaderCollectionViewCell.h"

@implementation M1HomeDetailsHeaderCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.m1_photoImage = [[UIImageView alloc] init];
        _m1_photoImage.image = LOAD_LOCAL_IMG(@"bgView");
        _m1_photoImage.contentMode = UIViewContentModeScaleAspectFill;
        _m1_photoImage.clipsToBounds = YES;
        [self.contentView addSubview:_m1_photoImage];
        
        [_m1_photoImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
        
        UIImageView *shadow = [[UIImageView alloc] init];
        shadow.image = LOAD_LOCAL_IMG(@"details_image_shadow");
        [self.contentView addSubview:shadow];
        
        [shadow mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
    }
    return self;
}

@end
